SetOffset
TheSetOffset
method sets the offset of the focused value.
void SetOffset (in ODULong offset);
offset
- The new offset (in bytes) of the read/write position from the beginning of the data stream in the focused value, expressed as an unsigned 32-bit value.
DISCUSSION
You can call this method if you want to read or write data at a particular position in the focused value. An offset of 0 means the beginning of the data stream corresponding to the focused value; an offset equal to the current size of the focused value (as returned by theGetSize
method) means the end of the data stream. You may not specify an offset larger than the current size of the focused value.EXCEPTIONS
If the storage-unit cursor for this storage-unit view does not represent a legal focus context for the storage unit that created this storage-unit view, this method throws exceptions raised by the
kODErrUnfocusedStorageUnit
- The focus context of this storage-unit view is not a value.
FocusWithCursor
method of that storage unit.SEE ALSO
TheODStorageUnitView::GetOffset
method (page 738).
TheODStorageUnitView::GetSize
method (page 742).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help